import { getBannerApi } from '@/apis/home'
import { ref } from 'vue'

export const useBanner = () => {
  const bannerList = ref([])
  const getBanner = async () => {
    const { result } = await getBannerApi({
      distributionSite: '2',
    })
    bannerList.value = result
  }
  getBanner()
  return { bannerList }
}
